package com.example.customconsume.service;

import com.example.customconsume.entity.ConsumeDto;
import lombok.Setter;
import org.springframework.stereotype.Component;

/**
 * @Description 改变余额上下文
 * @Author lihw
 * @Date 2024/7/8 15:44
 */
@Setter
@Component
public class ChangeWalletContext {

    private ChangeWalletService<ConsumeDto> changeWalletService;

    public ConsumeDto changeWallet(ConsumeDto consumeDto) {
        return changeWalletService.change(consumeDto);
    }
}
